#ifndef MANAGER_H
#define MANAGER_H

#include "reader.h"
#include "book.h"
#include <vector>
#include <iostream>
using namespace std;

class Manager
{
	int m_id;
	vector<Book*> book;
	vector<Reader*> reader;
public:

	//添加书本
	virtual bool AddBook(Book& b) = 0;
	//借书
	virtual bool BorrowBook(int b_id,int a_id) = 0;
	//还书
	virtual bool ReturnBook(int b_id,int u_id) = 0;
	//显示
	virtual void ShowBook(void) = 0;
	//添加读者
	virtual void AddReader(Reader& r) = 0;
	//删除读者
	virtual void DelReader(void) = 0;
	//显示读者
	virtual void ShowReader(void) = 0;
 	virtual int SetMoney(int cash,int u_id) = 0;
	virtual void save(void) = 0;
	//预约
//	virtual bool appointBook(int b_id,int a_id) = 0;
};

#endif //manager_h
